package com.abhinav;

import java.util.Collection;

public class Main {
	
	String s;
	
	public void demo(Object obj1, Object obj2){
		System.out.println("Object obj1, Object obj2");
	}
	
	public void demo(String str, Object obj){
		System.out.println("String str, Object obj");
	}
	
	public void demo(String str1, String str2){
		System.out.println("String str1, String str2");
	}
	
	public void demo(A a){
		System.out.println("A");
	}
	
	public void demo(B b){
		System.out.println("B");
	}

	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Main main = new Main();
		
		main.demo(null, null);
		
		main.demo("str", null);
		
		main.demo("str1", "str2");
		
		main.demo(new Object(), new Object());
		
		main.demo(new A());
		
		main.demo(new B());
		
		main.demo(null);
		
			
		int i = 2;
		
		int j = 3;
			
		j = (i=3)*3;
		
		System.out.println("i="+i+" j="+j);
		
		
		if(main.s == null){
			main.s = "Abhinav";
		}
		
		System.out.println(main.s);
				
	}

}

class A{
}

class B extends A{
	
}
